<?php
/* @var $this BrandController */
/* @var $model Brand */
?>

<?php
$this->breadcrumbs = array(
	'Brands' => array('index'),
	$model->pageId,
);
?>

<div class="row-fluid">
    <div class="span12">
        <div class="grid simple">

			<div class="grid-title no-border">
				<br />
			</div>
			<div class="grid-body no-border">

				<?php
				$image = Yii::app()->request->baseUrl . '/uploads/images/' . $model->pageType . '/' . $model->pageImages;
				$image = !empty($model->pageImages) ? $image : Yii::app()->request->baseUrl . '/uploads/images/no_photo.jpg';
				$this->widget('zii.widgets.CDetailView', array(
					'htmlOptions' => array(
						'class' => 'table table-striped table-condensed table-hover',
					),
					'data' => $model,
					'attributes' => array(
						'pageId',
						'pageParent',
						'pageType',
						'pageUrl',
						'pageTitle',
						'pageContentShort',
						'pageContentFull',
						array(
							'name' => 'pageImages',
							'value' => CHtml::image($image),
							'type' => 'raw',
						),
						'pageActive',
						'pageAuthor',
						'pageSort',
						'pageAction',
						'pageItemId',
					),
				));
				?>
			</div>
        </div>	
    </div>
</div>